import { createRouter, createWebHashHistory } from 'vue-router'
import SupermapLayout from "@/layout/index.vue";

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '',
      component: SupermapLayout,
      redirect: '',
      children: [
        {
          path: '',
          name: 'main',
          meta: {
            title: ''
          },
          component: () => import('../views/pages/main/index.vue')
        },
        {
          path: '/init',
          name: 'home',
          meta: {
            title: ''
          },
          component: () => import('../views/pages/data-load/index.vue')
        }
      ]
    },

  ]
})

export default router
